<?php
 class Form_ratings extends Zend_Dojo_Form{
 	
 	public function init(){
		
		Zend_Dojo::enableForm($this);
		$this->setName('Rate Gradeometer');
		
/**
     * Form initialization
     *
     * @return void
     */
    
     /**
      * Rate the community module
      */
     #

     $this->addElement(
    'HorizontalSlider',
    'community',
    array(
        'label'                     => 'How would you rate the community module',
        'value'                     => 3,
        'minimum'                   => 1,
        'maximum'                   => 5,
        'discreteValues'            => 5,
    	'clickselect'				=> true,
        'intermediateChanges'       => true,
        'showButtons'               => true,
        'bottomDecorationDijit'     => 'HorizontalLabels',
        'bottomDecorationContainer' => 'bottomContainer',
        'bottomDecorationLabels'    => array(
                'Very Poor',
                'Poor',
                'Average',
    			'Good',
    			'Great',
        ),
        'bottomDecorationParams'   => array(
            'list' => array(
                'style' => 'height:1em; font-size=75%;color:gray;',
            ),
        ),
    )
);

		
     $this->addElement(
    'HorizontalSlider',
    'student',
    array(
        'label'                     => 'How would you rate the student module',
        'value'                     => 3,
        'minimum'                   => 1,
        'maximum'                   => 5,
        'discreteValues'            => 5,
    	'clickselect'				=> true,
        'intermediateChanges'       => true,
        'showButtons'               => true,
        'bottomDecorationDijit'     => 'HorizontalLabels',
        'bottomDecorationContainer' => 'bottomContainer',
        'bottomDecorationLabels'    => array(
              'Very Poor',
                'Poor',
                'Average',
    			'Good',
    			'Great',
        ),
        'bottomDecorationParams'   => array(
            'list' => array(
                'style' => 'height:1em; font-size=75%;color:gray;',
            ),
        ),
    )
);


$this->addElement(
    'HorizontalSlider',
    'usefulness',
    array(
        'label'                     => 'How would you rate gradeometer in general?',
        'value'                     => 3,
        'minimum'                   => 1,
        'maximum'                   => 5,
        'discreteValues'            => 5,
    	'clickSelect'				=> true,
        'intermediateChanges'       => true,
        'showButtons'               => true,
        'bottomDecorationDijit'     => 'HorizontalLabels',
        'bottomDecorationContainer' => 'bottomContainer',
        'bottomDecorationLabels'    => array(
                'Very Poor',
                'Poor',
                'Average',
    			'Good',
    			'Excellent',
        ),
        'bottomDecorationParams'   => array(
            'list' => array(
                'style' => 'height:1em; font-size=75%;color:gray;',
            ),
        ),
    )
);


/**
 * Enter Comments about the class
 */
        $this->addElement(
            'Editor',
            'comments',
            array(
                'label'        => 'We appreciate any comments you may have on how we can improve gradeometer',
             	'Height' => '65px',
            	'focusOnLoad' => true,
            )
        ); 
		        
        
        
		$pubKey = "6LfYhQsAAAAAAB_0Tfli3hzQdE0WF6YgGyY-dScs"; 
		$privKey = "6LfYhQsAAAAAAJs_fWcMv1vUS8zdNKD0WUNo2nCO"; 
		$recaptcha = new Zend_Service_ReCaptcha($pubKey, $privKey);
		$captcha = new Zend_Form_Element_Captcha('challenge',array('captcha'        => 'ReCaptcha',
		               'captchaOptions' => array('captcha' => 'ReCaptcha', 'service' => $recaptcha)));
		
		$this->addElement($captcha);
        $this->setMethod('post');
        $this->setName('Rate Gradeometer');
        $submit = new Zend_Dojo_Form_Element_SubmitButton('submit');
        $submit->setLabel('Tell us what you think');
        
        $this->addElement($submit);



    }
    
 }
		
 	
